package com.tos.uc.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品订单表，
 * 
 * 表名：tos_goods_order
 * 
 * @author zj
 * 
 */
@SuppressWarnings("serial")
public class TosGoodsOrder implements Serializable {

	private Integer id;//
	private String orderSn;// 订单号
	private Integer userId;// 用户ID
	private Integer orderStatus;// -1=>已取消1=>待支付2=>待发货3=>待收货4=>待评价5=>完成
	private Integer cancelStatus;// 1=>未取消2=>取消3=>退款中4=>已退款
	private Integer customerAddressid;// 地址id
	private String customerPhone;// 联系号码
	private String customerArea;// 用户地区
	private String customerAddress;// 用户地址
	private String customerName;// 用户姓名
	private String invoiceTitle;// 发票抬头
	private BigDecimal goodsPrice;// 商品总价
	private BigDecimal shippingPrice;// 邮费
	private BigDecimal orderAmount;// 应付金额
	private BigDecimal totalAmount;// 订单总价
	private Date shippingTime;// 发货时间
	private Date confirmTime;// 确认收货时间
	private Date payTime;// 支付时间
	private String shippingCode;// 物流编号
	private Integer expressId;// 物流公司id
	private String payName;// 支付名称
	private String payCode;// 支付编号
	private Integer isSource;// 0不分成，1为分成订单，2已分成
	private String userNote;// 用户备注
	private String adminNote;// 管理员备注
	private Date createTime;//
	private Date updateTime;//
	private Integer deleted;//
	private Integer version;//
	private String goodsType;// (0 新品订单,1 二手订单,2 分销)
	private Integer sellerUserId;//卖家id
	private Integer payType;//支付方式 1->支付宝, 2->微信,3->余额支付
	private Date orderGetTime;

	public TosGoodsOrder() {
	}

	/**
	 *
	 * @param id
	 *            --
	 */
	public TosGoodsOrder(Integer id) {
		this.id = id;
	}

	/***/
	public Integer getId() {
		return id;
	}

	/***/
	public void setId(Integer id) {
		this.id = id;
	}

	/** 订单号 */
	public String getOrderSn() {
		return orderSn;
	}

	/** 订单号 */
	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	/** 用户ID */
	public Integer getUserId() {
		return userId;
	}

	/** 用户ID */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	/** -1=>已取消1=>待支付2=>待发货3=>待收货4=>待评价5=>完成 */
	public Integer getOrderStatus() {
		return orderStatus;
	}

	/** -1=>已取消1=>待支付2=>待发货3=>待收货4=>待评价5=>完成 */
	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	/** 1=>未取消2=>取消3=>退款中4=>已退款 */
	public Integer getCancelStatus() {
		return cancelStatus;
	}

	/** 1=>未取消2=>取消3=>退款中4=>已退款 */
	public void setCancelStatus(Integer cancelStatus) {
		this.cancelStatus = cancelStatus;
	}

	/** 地址id */
	public Integer getCustomerAddressid() {
		return customerAddressid;
	}

	/** 地址id */
	public void setCustomerAddressid(Integer customerAddressid) {
		this.customerAddressid = customerAddressid;
	}

	/** 联系号码 */
	public String getCustomerPhone() {
		return customerPhone;
	}

	/** 联系号码 */
	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}

	/** 用户地区 */
	public String getCustomerArea() {
		return customerArea;
	}

	/** 用户地区 */
	public void setCustomerArea(String customerArea) {
		this.customerArea = customerArea;
	}

	/** 用户地址 */
	public String getCustomerAddress() {
		return customerAddress;
	}

	/** 用户地址 */
	public void setCustomerAddress(String customerAddress) {
		this.customerAddress = customerAddress;
	}

	/** 用户姓名 */
	public String getCustomerName() {
		return customerName;
	}

	/** 用户姓名 */
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	/** 发票抬头 */
	public String getInvoiceTitle() {
		return invoiceTitle;
	}

	/** 发票抬头 */
	public void setInvoiceTitle(String invoiceTitle) {
		this.invoiceTitle = invoiceTitle;
	}

	/** 商品总价 */
	public BigDecimal getGoodsPrice() {
		return goodsPrice;
	}

	/** 商品总价 */
	public void setGoodsPrice(BigDecimal goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	/** 邮费 */
	public BigDecimal getShippingPrice() {
		return shippingPrice;
	}

	/** 邮费 */
	public void setShippingPrice(BigDecimal shippingPrice) {
		this.shippingPrice = shippingPrice;
	}

	/** 应付金额 */
	public BigDecimal getOrderAmount() {
		return orderAmount;
	}

	/** 应付金额 */
	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}

	/** 订单总价 */
	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	/** 订单总价 */
	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	/** 发货时间 */
	public Date getShippingTime() {
		return shippingTime;
	}

	/** 发货时间 */
	public void setShippingTime(Date shippingTime) {
		this.shippingTime = shippingTime;
	}

	/** 确认收货时间 */
	public Date getConfirmTime() {
		return confirmTime;
	}

	/** 确认收货时间 */
	public void setConfirmTime(Date confirmTime) {
		this.confirmTime = confirmTime;
	}

	/** 支付时间 */
	public Date getPayTime() {
		return payTime;
	}

	/** 支付时间 */
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	/** 物流编号 */
	public String getShippingCode() {
		return shippingCode;
	}

	/** 物流编号 */
	public void setShippingCode(String shippingCode) {
		this.shippingCode = shippingCode;
	}

	/** 物流公司id */
	public Integer getExpressId() {
		return expressId;
	}

	/** 物流公司id */
	public void setExpressId(Integer expressId) {
		this.expressId = expressId;
	}

	/** 支付名称 */
	public String getPayName() {
		return payName;
	}

	/** 支付名称 */
	public void setPayName(String payName) {
		this.payName = payName;
	}

	/** 支付编号 */
	public String getPayCode() {
		return payCode;
	}

	/** 支付编号 */
	public void setPayCode(String payCode) {
		this.payCode = payCode;
	}

	/** 0不分成，1为分成订单，2已分成 */
	public Integer getIsSource() {
		return isSource;
	}

	/** 0不分成，1为分成订单，2已分成 */
	public void setIsSource(Integer isSource) {
		this.isSource = isSource;
	}

	/** 用户备注 */
	public String getUserNote() {
		return userNote;
	}

	/** 用户备注 */
	public void setUserNote(String userNote) {
		this.userNote = userNote;
	}

	/** 管理员备注 */
	public String getAdminNote() {
		return adminNote;
	}

	/** 管理员备注 */
	public void setAdminNote(String adminNote) {
		this.adminNote = adminNote;
	}

	/***/
	public Date getCreateTime() {
		return createTime;
	}

	/***/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/***/
	public Date getUpdateTime() {
		return updateTime;
	}

	/***/
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/***/
	public Integer getDeleted() {
		return deleted;
	}

	/***/
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	/***/
	public Integer getVersion() {
		return version;
	}

	/***/
	public void setVersion(Integer version) {
		this.version = version;
	}

	/** (0分销 1 新品订单，2 二手订单) */
	public String getGoodsType() {
		return goodsType;
	}

	/** (0分销 1 新品订单，2 二手订单) */
	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}
	
	

	public Integer getSellerUserId() {
		return sellerUserId;
	}

	public void setSellerUserId(Integer sellerUserId) {
		this.sellerUserId = sellerUserId;
	}
	

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Date getOrderGetTime() {
		return orderGetTime;
	}

	public void setOrderGetTime(Date orderGetTime) {
		this.orderGetTime = orderGetTime;
	}

	@Override
	public String toString() {
		return "TosGoodsOrder [ id=" + id + ", orderSn=" + orderSn
				+ ", userId=" + userId + ", orderStatus=" + orderStatus
				+ ", cancelStatus=" + cancelStatus + ", customerAddressid="
				+ customerAddressid + ", customerPhone=" + customerPhone
				+ ", customerArea=" + customerArea + ", customerAddress="
				+ customerAddress + ", customerName=" + customerName
				+ ", invoiceTitle=" + invoiceTitle + ", goodsPrice="
				+ goodsPrice + ", shippingPrice=" + shippingPrice
				+ ", orderAmount=" + orderAmount + ", totalAmount="
				+ totalAmount + ", shippingTime=" + shippingTime
				+ ", confirmTime=" + confirmTime + ", payTime=" + payTime
				+ ", shippingCode=" + shippingCode + ", expressId=" + expressId
				+ ", payName=" + payName + ", payCode=" + payCode
				+ ", isSource=" + isSource + ", userNote=" + userNote
				+ ", adminNote=" + adminNote + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + ", deleted=" + deleted
				+ ", version=" + version + ", orderType=" + goodsType + "]";
	}

}
